#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class Skill : Business.BusinessBase<Skill, int>
	{
		#region Fields and Properties

		private String code = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Code
		{
			get { return code; }
			set
			{
				if (value != code)
				{
					MarkChanged("Code");
					code = value;
				}
			}
		}

		private DateTime addDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime AddDate
		{
			get { return addDate; }
			set
			{
				if (value != addDate)
				{
					MarkChanged("AddDate");
					addDate = value;
				}
			}
		}

		private String staffCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StaffCode
		{
			get { return staffCode; }
			set
			{
				if (value != staffCode)
				{
					MarkChanged("StaffCode");
					staffCode = value;
				}
			}
		}

		private String skillLvl = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String SkillLvl
		{
			get { return skillLvl; }
			set
			{
				if (value != skillLvl)
				{
					MarkChanged("SkillLvl");
					skillLvl = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public Skill()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override Skill DataSelect(int id)
		{
			return Services.DALService.SkillService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.SkillService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.SkillService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.SkillService.Delete(this);
		}

		#endregion Base overrides
	}
}
